package cn.dogger.easyboot.init.initEntity;

import cn.dogger.easyboot.init.annotation.InitField;
import cn.dogger.easyboot.init.annotation.InitTable;
import cn.dogger.easyboot.init.enums.FieldTypeEnums;
import lombok.Data;
import java.time.LocalDateTime;

/**
 * 通知公告表
 *
 * @author dogger
 *  2022-07-27
 */
@Data
@InitTable(name = "sys_notice",remark = "通知公告表")
public class SysNotice {

    @InitField(remark = "公告ID",name = "notice_id",type = FieldTypeEnums.int_,keyFlag = true)
    private Integer noticeId;

    @InitField(remark = "公告标题",name = "notice_title",fieldLength = 50)
    private String noticeTitle;

    @InitField(remark = "公告类型（1通知 2公告）",name = "notice_type",fieldLength = 50)
    private String noticeType;

    @InitField(remark = "公告内容",name = "notice_content",fieldLength = 50)
    private String noticeContent;

    @InitField(remark = "公告状态（1正常 0关闭）",name = "status",fieldLength = 50)
    private String status;

    @InitField(remark = "创建者",name = "create_by",fieldLength = 50)
    private String createBy;

    @InitField(remark = "创建时间",name = "create_time",type = FieldTypeEnums.datetime_)
    private LocalDateTime createTime;

    @InitField(remark = "更新者",name = "update_by",fieldLength = 50)
    private String updateBy;

    @InitField(remark = "更新时间",name = "update_time",type = FieldTypeEnums.datetime_)
    private LocalDateTime updateTime;

    @InitField(remark = "备注",name = "remark",fieldLength = 50)
    private String remark;

}